package com.itheima.mapper;

import com.itheima.domain.Product;

import java.util.List;

public interface ProductMapper {
    public abstract List<Product> findAll();

    public abstract Product findById(Integer id);

    public abstract  int add(Product product);

    public abstract int updateById(Product product);

    public abstract  int deleteById(Integer id);

    public abstract  int deleteByIdStatus(Integer id);

    public abstract  List<Product> findByNPT(Product product);

    public abstract  int updateCon(Product product);

    public abstract int addBatch(List<Product> list);
}
